package es.ats.codington.festival.junit;

import static org.junit.Assert.*;
import junit.framework.TestCase;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

import es.ats.codington.festival.daos.EventSignUpDAOImpl;
import es.ats.codington.festival.services.VisitorService;

public class TestEventSignUpDAO extends TestCase {

	@Before
	public void setUp() throws Exception {
		super.setUp();
	}

	@After
	public void tearDown() throws Exception {
		super.tearDown();
	}

	/** this method tests the alternative flow
	 * @throws Exception
	 */
	@Test
	public void testeventSignup() throws Exception {
		
		boolean aux;	
				
		EventSignUpDAOImpl evs = new EventSignUpDAOImpl();
		
		aux = evs.signUpToEvent(1,3);
			
		try{
			assertEquals(true, aux);
			
		}catch(Exception ex){
			fail("Not yet implemented");
		}
	}
	
	public void testunsignup() throws Exception {
		boolean aux;
		
		EventSignUpDAOImpl evuns =new EventSignUpDAOImpl();
		aux = evuns.unsignUpToEvent(1,3);
		try{
			assertEquals(true, aux);
			
		}catch(Exception ex){
			fail("Not yet implemented");
		}
	}

}